from email.mime.text import MIMEText
msg = MIMEText('hello, send by Python...', 'plain', 'utf-8')
from_addr = "ganjingcun@163.com"
password = ""
to_addr = "522524726@qq.com"
smtp_server = "smtp.qq.com"
# 522524726@qq.com
import smtplib
server = smtplib.SMTP(smtp_server, 25)
server.set_debuglevel(1)
server.login(from_addr, password)
server.sendmail(from_addr, [to_addr], msg.as_string())
server.quit()